import { GenderMaleIcon, GenderFemaleIcon } from 'tdesign-icons-react'
const getSexIcon = (sexStr: string | number) => {
  switch (sexStr) {
    case '男':
      return <GenderMaleIcon style={{ marginLeft: 5, paddingBottom: 2 }} color='#91bcf3' />
    case '女':
      return <GenderFemaleIcon style={{ marginLeft: 5, paddingBottom: 2 }} color='#ef77e2' />
    case 1:
      return <GenderMaleIcon style={{ marginLeft: 5, paddingBottom: 2 }} color='#91bcf3' />
    case 2:
      return <GenderFemaleIcon style={{ marginLeft: 5, paddingBottom: 2 }} color='#ef77e2' />
    default:
      return null
  }
}
const getLvIcon = (lv: number) => {
  // 没有图片先用文本
  if (lv) return 'Lv' + lv
  return ''
}
export { getSexIcon, getLvIcon }
